package com.todaynews.frame.model;

import com.todaynews.model.model.NewsData;
import com.todaynews.model.model.TipEntity;

/**
 * [description about this class]
 * 数据
 * @author jack
 */
public class InfoResult<T> {

    private int tag;//请求标识
    private boolean success = false;
    private String desc = "";
    private T t;
    /**
     * 根据具体业务情况定义
     * 返回状态标示
     * 1:成功
     * -1:失败
     * -4:session失效
     * -1000:网络出错
     */
    private int code;

    //测试另外加的
    /**
     * message : success
     * total_number : 20
     * has_more : true
     * login_status : 0
     * show_et_status : 0
     * post_content_hint : 分享今日新鲜事
     * has_more_to_refresh : true
     * action_to_last_stick : 0
     * feed_flag : 0
     * is_use_bytedance_stream : false
     * get_offline_pool : false
     * location : 山西
     * api_base_info : null
     */
    private String message;
    private int total_number;
    private boolean has_more;
    private int login_status;
    private int show_et_status;
    private String post_content_hint;
    private boolean has_more_to_refresh;
    private int action_to_last_stick;
    private int feed_flag;
    private boolean is_use_bytedance_stream;
    private boolean get_offline_pool;
    private String location;
    public TipEntity tips;

    public TipEntity getTips() {
        return tips;
    }

    public void setTips(TipEntity tips) {
        this.tips = tips;
    }

    public InfoResult(boolean success, T t) {
        this.success = success;
        this.t = t;
    }

    public InfoResult(boolean success, T t, int state) {
        this.success = success;
        this.t = t;
        this.code = state;
    }

    public InfoResult(boolean success, T t, int state, String desc) {
        this.success = success;
        this.t = t;
        this.desc = desc;
        this.code = state;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public int getState() {
        return code;
    }

    public void setState(int state) {
        this.code = state;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getTotal_number() {
        return total_number;
    }

    public void setTotal_number(int total_number) {
        this.total_number = total_number;
    }

    public boolean isHas_more() {
        return has_more;
    }

    public void setHas_more(boolean has_more) {
        this.has_more = has_more;
    }

    public int getLogin_status() {
        return login_status;
    }

    public void setLogin_status(int login_status) {
        this.login_status = login_status;
    }

    public int getShow_et_status() {
        return show_et_status;
    }

    public void setShow_et_status(int show_et_status) {
        this.show_et_status = show_et_status;
    }

    public String getPost_content_hint() {
        return post_content_hint;
    }

    public void setPost_content_hint(String post_content_hint) {
        this.post_content_hint = post_content_hint;
    }

    public boolean isHas_more_to_refresh() {
        return has_more_to_refresh;
    }

    public void setHas_more_to_refresh(boolean has_more_to_refresh) {
        this.has_more_to_refresh = has_more_to_refresh;
    }

    public int getAction_to_last_stick() {
        return action_to_last_stick;
    }

    public void setAction_to_last_stick(int action_to_last_stick) {
        this.action_to_last_stick = action_to_last_stick;
    }

    public int getFeed_flag() {
        return feed_flag;
    }

    public void setFeed_flag(int feed_flag) {
        this.feed_flag = feed_flag;
    }

    public boolean isIs_use_bytedance_stream() {
        return is_use_bytedance_stream;
    }

    public void setIs_use_bytedance_stream(boolean is_use_bytedance_stream) {
        this.is_use_bytedance_stream = is_use_bytedance_stream;
    }

    public boolean isGet_offline_pool() {
        return get_offline_pool;
    }

    public void setGet_offline_pool(boolean get_offline_pool) {
        this.get_offline_pool = get_offline_pool;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
